package my.net.server.service;

import my.net.bean.Message;
import my.net.bean.User;

import org.jboss.netty.channel.Channel;

public class Login extends BaseProcessor {

	@Override
	public String name() {
		return "login";
	}

	@Override
	public boolean needLogin() {
		return false;
	}

	@Override
	public Message doProcess(Message msg, Channel channel) {
		User user = msg.getData(User.class);
		String[] ids = new String[]{"test","test1","test2"};
		PushServer.login(channel.getId()+"", channel);
		return new Message();
		//throw new RuntimeException("userid or password is error");
	}

}
